package com.nbstar.film.spider.excel;

import com.nbstar.film.spider.domain.FilmSpiderDomain;
import com.nbstar.film.spider.pojo.ExcelVedioInfo;
import com.nbstar.film.spider.pojo.FilmExcelInfo;
import com.nbstar.film.spider.pojo.FilmInfo;
import com.nbstar.film.spider.spider.BaiKeSpider;
import org.apache.poi.ss.usermodel.Row;

public class YunNanExcelWriter extends CommonExcelWriter{

    public YunNanExcelWriter(String sheetName, String excelPath) {
        super(sheetName, excelPath);
    }


    @Override
    public ExcelVedioInfo trans2Excel(FilmSpiderDomain domain) {
        setSpider(FilmSpiderDomain.SPIDER_FROM_BAIKE);
        return super.trans2Excel(domain);
//        FilmExcelInfo filmExcelInfo = new FilmExcelInfo();
//        FilmInfo filmInfo = domain.get(FilmSpiderDomain.SPIDER_FROM_BAIKE);
//        filmExcelInfo.setFilmName(domain.getRaw().getFilmName());
//        filmExcelInfo.setArriveAddress(filmInfo.getArriveAddress());
//        filmExcelInfo.setArriveDate(filmInfo.getArriveDate());
//        return filmExcelInfo;
    }
}
